revSpeechVoices
Type
function
Summary
Returns a list of available voices to use with the revSetSpeechVoice command.
Syntax
revSpeechVoices([<voiceGender>])
Description
Use the revSpeechVoices function to find out what voices can be used to speak text on the current system.
The revSpeechVoices function returns a list of voices installed on the current system. Each voice is either male, female, or neuter, and you can use the optional voiceGender parameter to request one of the genders.
The revSpeechVoices function is part of the Speech library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Speech" library checkbox is checked.
Parameters
Name | Type | Description |
---|---|---|
voiceGender | One of "male", "female", or "neuter". If you don't specify a voiceGender, all voices are returned. |
Examples
revSpeechVoices()
revSpeechVoices("female")
put revSpeechVoices("neuter") into button "Voices Menu"
Related
glossary: parameter, Standalone Application Settings, command, return, standalone application, LiveCode custom library
keyword: line
library: Speech library
command: revSetSpeechVoice, revSpeak, revSetSpeechProvider
control structure: function
Compatibility and Support
Introduced
LiveCode 2.0
OS
mac
windows
Platforms
desktop
server